package com.yx.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 回复
 * </p>
 *
 * @author yx
 * @since 2023-02-14
 */
public class Reply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rId", type = IdType.AUTO)
    private Integer rId;

    @TableField(value = "rContent")
    private String rContent;

    @TableField(value = "rTime")
//    @DateTimeFormat(pattern="yyyy-MM-dd")
//    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private String rTime;

    @TableField(value = "pId")
    private Integer pId;
    @TableField(value = "from_uId")
    private Integer fromuId;


    @TableField(value = "isDelete")
    private Integer isDelete;

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }
    public String getrContent() {
        return rContent;
    }

    public void setrContent(String rContent) {
        this.rContent = rContent;
    }
    public String getrTime() {
        return rTime;
    }

    public void setrTime(String rTime) {
        this.rTime = rTime;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }
    public Integer getFromuId() {
        return fromuId;
    }

    public void setFromuId(Integer fromuId) {
        this.fromuId = fromuId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }


    @Override
    public String toString() {
        return "Reply{" +
                "rId=" + rId +
                ", rContent='" + rContent + '\'' +
                ", rTime=" + rTime +
                ", pId=" + pId +
                ", fromuId=" + fromuId +
                ", isDelete=" + isDelete +
                '}';
    }
}
